<script>var pagename="Default Variables and Functions"</script>
<script src="header.js"></script>
<h5>Below is the list of default variables (constants) initialized every time MiniCalc is started.</h5>

<table cellpadding="2" cellspacing="1" bgcolor="#808080" width="85%" align="center">
<tr>
  <th class="headcell" width="10%">Variable Name</th>
  <th class="headcell" width="20%">Initial Value</th>
  <th class="headcell" width="5%">Mathematical Symbol</th>
  <th class="headcell" width="65%">Description</th>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%"><b>ans</b></td>
  <td class="datacell">0</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell"><b>The result of the previously evaluated expression</b></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">e</td>
  <td class="datacell">2.718281828</td>
  <td class="datacell"><img src="sym_e.gif"></td>
  <td class="datacell">The constant e, which is the base of the natural logarithm function ln()</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">pi</td>
  <td class="datacell">3.141592654</td>
  <td class="datacell"><img src="sym_pi.gif"></td>
  <td class="datacell">The constant pi, which is the ratio of a circle's circumference to its diameter</td>
</tr>
</table>

<h5>Below is the list of default functions initialized every time MiniCalc is started.<br>
Note: These are called &quot;external functions&quot; and cannot be deleted nor edited.</h5>

<table cellpadding="2" cellspacing="1" bgcolor="#808080" width="85%" align="center">
<tr>
  <th class="headcell" width="10%">Function Name</th>
  <th class="headcell" width="20%">Parameters</th>
  <th class="headcell" width="5%">Mathematical Symbol</th>
  <th class="headcell" width="65%">Description</th>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">abs</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_abs.gif"></td>
  <td class="datacell">Returns the absolute value of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">acos</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_acos.gif"></td>
  <td class="datacell">Returns the measure of the arc whose cosine is <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">asin</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_asin.gif"></td>
  <td class="datacell">Returns the measure of the arc whose sine is <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">atan</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_atan.gif"></td>
  <td class="datacell">Returns the measure of the arc whose tangent is <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">avg</td>
  <td class="datacell"><i>x<sub>0</sub></i>, <i>x<sub>1</sub></i>, ..., <i>x<sub>n</sub></i> (decimals)</td>
  <td class="datacell"><img src="sym_avg.gif"></td>
  <td class="datacell">Returns the average of all parameters.<br><b>Note: this function requires at least 2 parameters.</b></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">ceil</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the largest integer that is greater than or equal to <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">comb</td>
  <td class="datacell"><i>n</i> (whole number)<br><i>r</i> (whole number)</td>
  <td class="datacell"><img src="sym_comb.gif"></td>
  <td class="datacell">Returns <i>n!</i> divided by <i>r!(n - r)!</i></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">comp</td>
  <td class="datacell"><i>a</i> (any)<br><i>b</i> (same as a)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns -1 if <i>a</i> is less than <i>b</i>, 0 if they are equal, or 1 if <i>a</i> is
	greater than <i>b</i>. In the case of strings, the comparison is alphabetical.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">cos</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_cos.gif"></td>
  <td class="datacell">Returns the cosine of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">cot</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_cot.gif"></td>
  <td class="datacell">Returns the cotangent (multiplicative inverse of tangent) of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">csc</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_csc.gif"></td>
  <td class="datacell">Returns the cosecant (multiplicative inverse of sine) of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">fact</td>
  <td class="datacell"><i>x</i> (whole number)</td>
  <td class="datacell"><img src="sym_fact.gif"></td>
  <td class="datacell">Returns x multiplied by all whole numbers less than <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">floor</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the largest integer that is less than or equal to <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">ln</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_ln.gif"></td>
  <td class="datacell">Returns the natural log of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">log</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_log.gif"></td>
  <td class="datacell">Returns the log in base 10 of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">lwcs</td>
  <td class="datacell"><i>s</i> (string)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the string <i>s</i> converted to all lowercase characters.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">max</td>
  <td class="datacell"><i>x<sub>0</sub></i>, <i>x<sub>1</sub></i>, ..., <i>x<sub>n</sub></i> (all decimals or all strings)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the largest value of all parameters.<br><b>Note: this function requires at least 2 parameters.</b></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">min</td>
  <td class="datacell"><i>x<sub>0</sub></i>, <i>x<sub>1</sub></i>, ..., <i>x<sub>n</sub></i> (all decimals or all strings)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the smallest value of all parameters.<br><b>Note: this function requires at least 2 parameters.</b></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">perm</td>
  <td class="datacell"><i>n</i> (whole number)<br><i>r</i> (whole number)</td>
  <td class="datacell"><img src="sym_perm.gif"></td>
  <td class="datacell">Returns <i>n!</i> divided by <i>(n - r)!</i></td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">root</td>
  <td class="datacell"><i>x</i> (decimal)<br><i>n</i> (decimal)</td>
  <td class="datacell"><img src="sym_root.gif"></td>
  <td class="datacell">Returns the <i>n</i>th root of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">sec</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_sec.gif"></td>
  <td class="datacell">Returns the secant (multiplicative inverse of cosine) of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">sin</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_sin.gif"></td>
  <td class="datacell">Returns the sine of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">sqrt</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_sqrt.gif"></td>
  <td class="datacell">Returns the square root of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">substr</td>
  <td class="datacell"><i>s</i> (string)<br><i>i</i> (whole number)<br><i>n</i> (whole number)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns a substring of string <i>s</i> of length <i>n</i>, beginning with
	zero-based character index <i>i</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">tan</td>
  <td class="datacell"><i>x</i> (decimal)</td>
  <td class="datacell"><img src="sym_tan.gif"></td>
  <td class="datacell">Returns the tangent of <i>x</i>.</td>
</tr>
<tr>
  <td class="datacell" style="font-family: courier new; font-size:80%">upcs</td>
  <td class="datacell"><i>s</i> (string)</td>
  <td class="datacell">&nbsp;</td>
  <td class="datacell">Returns the string <i>s</i> converted to all uppercase characters.</td>
</tr>
</table>

<script src="footer.js"></script>